package com.logistics.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 车辆实体类
 */
@Data
@TableName("vehicle")
public class Vehicle {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long tenantId;
    
    private String plateNumber;
    
    private String vehicleType;
    
    private String brandModel;
    
    private BigDecimal loadCapacity;
    
    private BigDecimal volumeCapacity;
    
    private LocalDate purchaseDate;
    
    private LocalDate insuranceExpireDate;
    
    private LocalDate inspectionExpireDate;
    
    private String vehicleStatus;
    
    private String vehicleSource;
    
    private String remark;
    
    // 车辆所有者（车主）信息
    private String ownerName;
    
    private String ownerPhone;
    
    private String ownerIdCard;
    
    private String ownerLicenseNumber;
    
    private String ownerLicenseType;
    
    private LocalDate ownerLicenseExpireDate;
    
    private String ownerAddress;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}

